package com.work.cos.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.work.cos.domain.entity.FootPrintLogEntity;
import com.work.cos.mapper.base.IFootPrintLogMapper;
import com.work.cos.service.interfc.IFootPrintLogService;
import com.work.cos.util.page.PageInfo;

@Service
public class FootPrintLogServiceImpl implements IFootPrintLogService{

	@Autowired
	private IFootPrintLogMapper footPrintLogMapper;

	@Override
	public PageInfo<FootPrintLogEntity> findFootPrintLogByUserId(Long userId, int pageNo, int pageSize) {
		return this.footPrintLogMapper.findFootPrintLogByUserId(userId, pageNo, pageSize);
	}

	@Override
	public boolean addFootPrintLog(FootPrintLogEntity entity) {
		return this.footPrintLogMapper.addFootPrintLog(entity) > 0;
	}
	
}
